//
//  HomeStatisticsTranMileageVC.m
//  ReceiptDelivery
//
//  Created by 吕晶 on 2021/6/23.
//  Copyright © 2021 吕晶. All rights reserved.
//

#import "HomeStatisticsTranMileageVC.h"
#import <WebKit/WebKit.h>

@interface HomeStatisticsTranMileageVC ()

@property (nonatomic, strong) WKWebView *webView;

@end

@implementation HomeStatisticsTranMileageVC

-(WKWebView *)webView {
    if (!_webView) {
        _webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, ScreenW, ScreenH - NaviHeight)];
    }
    return _webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"平台运输里程统计";
    [self.view addSubview:self.webView];
    NSString *url = [NSString stringWithFormat:@"%@/look/mileage.html?token=%@",H5BaseUrl,[User getUserToken]];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:20]];
}

@end
